package com.nosnow.edu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author by bingHeng
 * @version 1.0
 * @Create 2020/3/29 20:16
 *
 * @EnableDiscoveryClient 在客户端服务启动类中添加注解，注册nacos
 * @EnableFeignClients 服务调用者增加该注解
 */

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@ComponentScan(basePackages = {"com.nosnow"})
public class EduApplication {

    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class, args);
    }
}
